import {
  TaobaoOutlined,
  EditOutlined,
  PieChartOutlined,
  FolderAddOutlined,
  UnorderedListOutlined,
} from '@ant-design/icons'

export default [
  {
    key: '/admin/main',
    icon: <TaobaoOutlined />,
    label: '后台首页',
  },
  {
    key: '2',
    icon: <UnorderedListOutlined />,
    label: '数据管理',
    children: [
      // key只需要唯一就可以了
      { key: '/admin/users', label: '用户列表' },
      { key: '/admin/seller', label: '商家列表' },
      { key: '/admin/rooter', label: '管理员列表' },
      { key: '/admin/food', label: '食品列表' },
      { key: '/admin/order', label: '订单列表' },
    ],
  },
  {
    key: '3',
    icon: <FolderAddOutlined />,
    label: '添加数据',
    children: [
      { key: '/admin/addhouse', label: '添加商铺' },
      { key: '/admin/addfood', label: '添加商品' },
    ],
  },
  {
    key: '4',
    icon: <PieChartOutlined />,
    label: '图表',
    children: [{ key: '/admin/chart', label: '用户分布' }],
  },
  {
    key: '5',
    icon: <EditOutlined />,
    label: '编辑信息',
    children: [{ key: '/admin/edit', label: '文本编辑' }],
  },
]